/**
 * 
 */
package org.knoppers.examples.powermock;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * @author jkonopka
 * 
 */
public class NetworkUtil {
	public static String getLocalHostname() {
		String hostname = "";
		try {
			InetAddress addr = InetAddress.getLocalHost();
			// Get hostname
			hostname = addr.getHostName();
		} catch (UnknownHostException e) {
		}
		return hostname;
	}
}
